
<html>
<head>
<meta charset="UTF-8">
<title>数据表模型信息列表</title>
<link href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<script type="text/javascript">

	function doTableModelScript() {
		var row = $('#dg').datagrid('getSelected');
		if (row) {
			JLEUtil.createModalWin('详情', 'TableModelScript.html?' + 'objectId='
					+ row.objectId);
		} else {
			$.messager.alert('提示', '请选择一条记录！', 'info');
		}
	}
	
	function doView(){
		var row = $('#dg').datagrid('getSelected');
		if (row) {
			JLEUtil.createModalWin('详情','ModelTableInfoView.html?' + '&objectId=' + row.objectId);
		} else {
			$.messager.alert('提示','请选择一条记录！','info');
		}
	}	

	function reloadList(){
		$('#dg').datagrid('reload');
		JLEUtil.closewin();
	};	
</script>
</head>
<body class="easyui-layout">
<div data-options="region:'north',title:''" style="height: 40px; background: #F4F4F4;">
	<form id="searchForm">
		<table>
			<tr>
				<td>&nbsp;表模型代码：</td>
				<td><input name="objectCode" id="objectCode"/></td>
				<td>&nbsp;表模型名称：</td>
				<td><input name="objectName" id="objectName"/></td>				
				<td><a class="easyui-linkbutton" href="javascript:void(0);" onclick="JLEUtil.queryForm('searchForm','dg','../../api/project/model/table/infos?projectId=' + $.getUrlParam('projectId'));">查找</a></td>
				<td><a class="easyui-linkbutton" href="javascript:void(0);" onclick="JLEUtil.clearForm('searchForm');">清空</a></td>
			</tr>
		</table>
	</form>
</div>
<div data-options="region:'center',split:false">
<table id="dg" class="easyui-datagrid" title="" style="width:100%;height:100%"
			data-options="singleSelect:true,collapsible:true,url:'../../api/project/model/table/infos?projectId=' + $.getUrlParam('projectId'),method:'post'"
			toolbar="#tb"
		title="Load Data" 
		rownumbers="true" pagination="true" pageSize="20">
		<thead>
			<tr>
				<th data-options="field:'objectCode',resizable:true" width="15%">表模型代码</th>
				<th data-options="field:'objectName',resizable:true" width="18%">表模型名称</th>
				<th data-options="field:'objectLocation',resizable:true" width="25%">表模型位置</th>
				<th data-options="field:'objectState',resizable:true" width="10%" formatter="formatter_DM_OBJECT_STATE" hidden="true">表模型状态</th>
				<th data-options="field:'tableDataCycle',resizable:true" width="10%" formatter="formatter_DM_DATA_CYCLE">表数据周期</th>
				<th data-options="field:'createUser',resizable:true" width="10%">创建者</th>
				<th data-options="field:'createTime',resizable:true" width="13%">创建时间</th>
				<th data-options="field:'objectDesc',resizable:true" width="36%">表模型用途</th>				
				<th data-options="field:'tableRecordLength',resizable:true" hidden="true">表记录长度</th>
			</tr>			
		</thead>
	</table>
</div>
<div id="tb" style="padding:1px">
	<div style="margin-bottom:2px">
		<a href="javascript:doView()" class="easyui-linkbutton" iconCls="icon-ok" plain="true">查看</a>
		<a href="javascript:doTableModelScript()" class="easyui-linkbutton" iconCls="icon-more" plain="true">建表语句</a>
	</div>
</div>
</body>
</html>

